<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:jee="http://www.springframework.org/schema/jee"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
            http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd">
    
    <!-- For mail settings and future properties files --><!--
    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="ignoreUnresolvablePlaceholders" value="true"/>
        <property name="locations">
            <list>
                <value>classpath:jdbc.properties</value>
                <value>classpath:mail.properties</value>
            </list>
        </property>
    </bean>

    --><!-- JNDI DataSource for J2EE environments -->
    <!--<jee:jndi-lookup id="dataSource" jndi-name="java:comp/env/jdbc/appfuse"/>-->

  <!--配置数据源JDBC-->
  <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
    <property name="driverClassName">
    <value>oracle.jdbc.driver.OracleDriver</value>
    </property>
    <property name="url">
    <value>jdbc:oracle:thin:@10.172.12.42:1521:audidb</value>
   <!-- <value>jdbc:oracle:thin:@127.0.0.1:1521:orcl</value>    
    <value>jdbc:mysql://localhost:3306/audidb?useUnicode=true&amp;characterEncoding=UTF-8&amp;zeroDateTimeBehavior=convertToNull</value>  
    <value>jdbc:jtds:sqlserver://127.0.0.1:1433;DatabaseName=DUMEX_EBOOK_LOCAL</value> -->
   </property>
    <property name="username">
      <value>audi_club</value>
    </property>
    <property name="password">
      <value>audi_clubdbuser</value>
    </property>
    <property name="maxActive"><!--连接池的最大数据库连接数。设为0表示无限制。 -->
    <value>100</value>
    </property>
    <property name="maxIdle"><!--maxIdle是最大的空闲连接数，表示即使没有数据库连接时依然可以保持空闲的连接，而不被清除，随时处于待命状态。-->
    <value>10</value>
    </property>
    <property name="maxWait"><!--最大建立连接等待时间。如果超过此时间将接到异常 -->
    <value>120000</value>
    </property><!-- 
    <property name="defaultAutoCommit">
    <value>true</value>
    </property> -->
  </bean>
  <!--   <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName"><value>java:comp/env/jdbc/audi</value></property>
    </bean>
--></beans>
